package com.h3c.nem.task;

import com.h3c.nem.service.ITbWorkerService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@JobHandler(value="teacherScheduleTaskHandle")
public class TeacherScheduleTask extends IJobHandler {

    @Autowired
    ITbWorkerService workerService;

    @Override
    public ReturnT<String> execute(String a) throws Exception {
        XxlJobLogger.log("teacherScheduleTaskHandle=====开始执行计算前一天流程完成的员工");
        workerService.checkFinishWorker();
        XxlJobLogger.log("teacherScheduleTaskHandle=====end");

        return SUCCESS;
    }

}
